<?php

/**
 * This is intended to be run in the "background" from an XmlHttpRequest call 
 */

include('mailview2.php');
$mailview = new Mailview2();

$link = Mailview\imap_open($_SESSION['config']);
Mailview\imap_setflag_full($link, (int) $_POST['uid'], '\Seen');

print json_encode($check);
?>
